﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
//using PowerCreator.LMS.Model.Entity;
//using PowerCreator.LMS.Logic.CourseManager;
//using PowerCreator.LMS.Logic.Common;
using System.Text;

public partial class sysadmin_CourseManager_ChangeCourseResource : PowerCreator.LMS.Web.Base.BasePage
{
    //ManagerCourseInfo manager = new ManagerCourseInfo();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {          
            pageload();


        }
    }
    private ArrayList GetIDList(string str)
    {
        ArrayList list = new ArrayList();
        string[] temp = str.Split(',');
        for (int i = 0; i < temp.Length; i++)
        {
            list.Add(temp[i].ToString());
        }
        return list;
    }
    private void pageload()
    {
        //DropDownList1.DataSource = manager.Query("");
        //DropDownList1.DataTextField = "CourseName";
        //DropDownList1.DataValueField = "Course_Id";
        //DropDownList1.DataBind();
    }

    protected void Submit_ServerClick(object sender, EventArgs e)
    {
        //ManagerCourseResourceInfo objcourseresourceinfo = new ManagerCourseResourceInfo();
        //PowerCreator.LMS.Model.Entity.CourseResourceInfo info = new CourseResourceInfo();
        //string ilist = Request.QueryString["il"].ToString();
        //ilist = Base64.Decode(ilist);
        //ArrayList list = new ArrayList();
        //list = GetIDList(ilist);
        //int CourseID = int.Parse(DropDownList1.SelectedValue.ToString());
        //string msg = string.Empty;
        //for (int i = 0; i < list.Count; i++)
        //{
        //    info = objcourseresourceinfo.load(int.Parse(list[i].ToString()));
        //    info.CourseID = CourseID;
        //    msg = objcourseresourceinfo.Update(info);
        //}
        //Script.Alert(this, "", msg);
        //Script.ReloadParent();
    }
}
